<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hz.model.User"%>
<%@page import="com.hz.util.DateControl"%>
<!DOCTYPE html>
<html>
<head>
    <title>东师红烛 </title>
</head>
<body>
<%
        User cu = (User)request.getSession().getAttribute("user");
        if(cu!=null){
        	int uid = cu.getId();
        	String joinYear = cu.getJoinDate().length()>4?cu.getJoinDate().substring(0,4):cu.getJoinDate();
        	int sYear = Integer.parseInt(joinYear);
        	int nowYear = Integer.parseInt(DateControl.Date().substring(0,4));
        	%>
        	<form action="card.jsp" method="post">
        	请选择要查看的认证书
        	<select name="year">
        	<%
        	for(int i=sYear;i<=nowYear;i++){
        		%>
        		<option value="<%=i %>"><%=i %>年</option>
        		<%
        	}
        	%>
        	<option value="0">加入红烛起至今</option>
        	</select>
        	<input type="submit" value="查看">
        	</form>
        	<%
        }
       
%>
</body>
</html>